/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the koala4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * @Author: GuoYang
 */
package com.koalacloud.koala.zhaikucloud.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品类目
 *
 * @Author: GuoYang
 * @date 2022-02-18 20:14:41
 */
@Data
@TableName("mall_product_type")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "商品类目")
public class MallProductType extends Model<MallProductType> {

    /**
     * 类目ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "类目ID")
    private Integer id;

    /**
     * 父分类ID=0时代表一级根分类
     */
    @Schema(description = "父分类ID=0时代表一级根分类")
    private Integer parentId;

    /**
     * 分类名称
     */
    @Schema(description = "分类名称")
    private String name;

    /**
     * 状态 1启用 0禁用
     */
    @Schema(description = "状态 1启用 0禁用")
    private Integer status;

    /**
     * 排列序号
     */
    @Schema(description = "排列序号")
    private Integer sortOrder;

    /**
     * 是否为父分类 1为true 0为false
     */
    @Schema(description = "是否为父分类 1为true 0为false")
    private Integer isParent;

    /**
     * 图标
     */
    @Schema(description = "图标")
    private String icon;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;


}
